import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/home"
  },
  {
    path: "/home",
    component: () => import("@/views/home/home.vue")
  },
  {
    path: "/favor",
    component: () => import("@/views/favor/favor.vue")
  },
  {
    path: "/message",
    component: () => import("@/views/message/message.vue")
  },
  {
    path: "/order",
    component: () => import("@/views/order/order.vue")
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes: routes
});

export default router;
